package com.javasm.mingming.task.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * (SysTask)表实体类
 *
 * @author makejava
 * @since 2025-01-17 10:11:28
 */
@SuppressWarnings("serial")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysTask extends Model<SysTask> {
    @TableId(type = IdType.AUTO)
    private Integer id;
    //任务名称
    private String name;
    //执行任务的类
    private String clazz;
    //定时任务表达式
    private String cron;
    //状态0关闭1开启
    private Integer status;
    @TableField(exist = false)
    private String statusStr;
    
    private Date ctime;

    public String getStatusStr() {
        return status.toString();
    }
}

